package com.dxt.springmvcdemo.vo.request;

import com.dxt.springmvcdemo.annotation.Salary;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * BelongProject: springMVC
 * BelongPackage: com.dxt.springmvcdemo.vo.request
 * Description:
 *
 * @Author 段鑫涛
 * @Create 2025/4/14 19:20
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description="添加员工提交的信息")
public class InsertEmployeeVo {
    @Schema(description="员工id")
    private String empName;

    @Schema(description="员工年龄")
    @Min(0)
    @Max(150)
    private Long age;

    @Schema(description="员工薪资")
    @Salary
    private BigDecimal empSalary;
}
